package com.moorror.codegenvel.utils;

import org.apache.commons.lang3.StringUtils;

import java.util.function.Consumer;
import java.util.function.Supplier;

/**
 * @Author jiyanghuang
 * @Date 2025/10/25 10:35
 */
public class MStringUtils {

    public static boolean checkStr(Supplier<String> value, String tipError, Consumer<String> fillTip){
        String val = value.get();
        if(StringUtils.isBlank(val)){
            fillTip.accept(tipError);
            return false;
        }
        return true;
    }
}
